package com.hbx.platform.org.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.hbx.platform.auth.domain.EmployeeRole;
import com.hbx.platform.base.domain.BaseDomain;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author: hbx
 * @date: 2024/03/30
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ExcelTarget("Employee")
public class Employee extends BaseDomain implements Serializable { //id 被抽取
    @Excel(name = "姓名",orderNum = "2")
    private String username;
    @Excel(name = "密码",orderNum = "3")
    private String password;
    @Excel(name = "年龄",orderNum = "4")
    private Integer age;
    @Excel(name = "邮箱",orderNum = "5")
    private String email;
    @ApiModelProperty("头像")
    @Excel(name = "头像地址",orderNum = "6")
    private String headImage;
    private Long departmentId;
    @ExcelEntity(name = "部门")
    private Department department;

    private EmployeeRole employeeRole;
}
